package com.example.master.config;

import org.springframework.context.annotation.*;
import org.springframework.http.converter.*;
import org.springframework.web.servlet.config.annotation.*;

import java.util.*;

/**
 * @Author zcb
 * @PackageName a-great-master
 * @Package com.masters.config
 * @Date 2023/2/7 17:08
 * @Version 1.0
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    /**
     * 增加图片转换器
     * @param converters
     */
    @Override
    public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
        converters.add(new BufferedImageHttpMessageConverter());
    }
}

